﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;

namespace FightLand_Sever
{
    class Server
    {
        static string _ip;
        public static string IP
        {
            get
            {
#if DEBUG
                return "127.0.0.1";
#else
                return _ip;
#endif
            }
        }

        static Server()
        {
            IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName());
            _ip = ips[ips.Length - 1].ToString();
        }
    }
}
